#include "xTextureStage.h"


namespace XE
{


	xTextureStage::xTextureStage()
		:m_pTexture(NULL),m_ColorOP(XTOP_MODULATE),
		m_BorderCol(0.0f,0.0f,0.0f,1.0f),m_Magfilter(XTEXF_POINT),m_Minfilter(XTEXF_POINT)
	{
	
		m_addres[0]=XTADDRESS_WRAP;
		m_addres[1]=XTADDRESS_WRAP;
		m_addres[2]=XTADDRESS_WRAP;
		

	}


	xTextureStage::~xTextureStage()
	{

	}


	void xTextureStage::SetTextureColorOP(xTextureOp top,TextureOpArgument a1,TextureOpArgument a2)
	{
         m_ColorOP = top;
		 m_ColorAg1 = a1;
		 m_ColorAg2 = a2;
	}


	void xTextureStage::SetTextureAlphaOP(xTextureOp top,TextureOpArgument a1,TextureOpArgument a2)
	{
		m_AlphaOP  = top;
		m_AlphaAg2 = a2;
		m_AlphaAg1 = a1;
	}


	void xTextureStage::SetTextureAddressMode(xTextureAddressMode u,xTextureAddressMode v,xTextureAddressMode w)
	{
		m_addres[0]=u;
		m_addres[1]=v;
		m_addres[2]=w;

	}
}